<!-- 结算结果页面 -->
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="gbk">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>结算结果</title>
    <link href="/static/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3" crossorigin="anonymous">
</head>
<body>
    <!-- 头部 -->
    <header onClick="toHome()">
        <div class="navbar navbar-dark bg-dark shadow-sm">
          <div class="container">
            <a href="#" class="navbar-brand d-flex align-items-center">
              <strong>结算结果</strong>
            </a>
          </div>
        </div>
      </header>
      <!-- 主体部分 -->
      <main>
        <div class="album py-5 bg-light">
            <div class="container" style="text-align:center;">
                <!-- 结算成功，展示余额 -->
                {% if left_money > 0 %}
                    <div class="card">
                        <img src="/static/images/success.jpg" class="card-img-top" alt="..." style="width:320px;margin:8px auto;">
                        <div class="card-body">
                            <h5 class="card-title">{{ msg }}</h5>
                            <p class="card-text">
                                您的余额为：
                                <span style="color:purple;">￥{{ left_money }}</span>
                            </p>
                        </div>
                    </div>
                <!-- 余额不足，提示失败 -->
                {% else %}
                    <div class="card">
                        <img src="/static/images/fail.jpg" class="card-img-top" alt="..." style="width:320px;margin:8px auto;">
                        <div class="card-body">
                            <h5 class="card-title">{{ msg }}</h5>
                        </div>
                    </div>
                {% endif %}
            </div>
        </div>
      </main>
      <script>
        // 回到首页
        function toHome(){
          window.location.href = '/'
        }
      </script>
</body>
</html>